package com.yang.service.model.enums;

import com.zhy.base.exception.model.BaseException;



/**
 * Created by baipan
 * Date: 2019/12/19
 * 异常枚举类
 */
public enum ExceptionEnum implements BaseException {

    //客户的地盘 1-100
    USER_LOGIN_ERROR(6004001, "登录失败"),

    //商家的地盘 100-199

    //产品的地盘 200 - 299

    //订单的地盘 300-399

    //菜单的地盘 400-499


    //其他的地盘 500-599
    GET_WECHAT_INFO_ERROR(6004500, "获取微信信息失败"),
    ;



    private Integer code;
    private String mark;


    ExceptionEnum(Integer code, String mark){
        this.code = code;
        this.mark = mark;
    }


    @Override
    public String getMessage() {
        return this.mark;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }


}
